package com.example.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.common.utils.R;
import com.example.gulimallproduct.entity.CategoryEntity;
import com.example.gulimallproduct.request.SaveCategoryRequest;
import com.example.gulimallproduct.response.SelectCategoryListWithTreeResponse;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zzl
 * @email zzl@gmail.com
 * @date 2025-10-24 15:22:38
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<SelectCategoryListWithTreeResponse> SelectCategoryListWithTree();

    R delCategoryByIds(Long[] catIds);

    R saveCategory(SaveCategoryRequest saveCategoryResponse);

    R updateCategory(CategoryEntity category);
}

